import { ref } from "vue";

/**
 * 是否使用 canvas2d
 */
export const useCanvas2d = () => {
  const canvas2d = ref(false);
  // #ifdef MP-WEIXIN
  canvas2d.value = true;
  // #endif

  return {
    canvas2d,
  };
};
